package one.saunfa.saunfa.stackbig;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wang fei
 * @date 2020-10-12 20:26
 */
public class testArrayStack {
    public static void main(String[] args) {
        ArrayStack stack = new ArrayStack(3);
        stack.push(1);
        //System.out.println(stack.peek());
        stack.push(2);
        stack.push(3);
        stack.push("abc");
        System.out.println(stack.peek());
        stack.pop();
        stack.pop();
        stack.pop();
        System.out.println(stack.peek());
    }

    @Test
    public void  template(){
        List<String> strings = new ArrayList<String>();
        strings.add("软件服务提供商");strings.add("企业管理");
        String [] name = {"软件服务提供商","22"};
        for(int i = 0; i<strings.size(); i++ ){
            if(!strings.contains(name[i])){
                System.out.println("进入");
            }
        }
    }
}
